﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataBase.Daihoctuonglai;

namespace dai_hoc_tuong_lai.Areas.Admin.Models
{
    public class Tongquang_Model
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Mota { get; set; }
        public string Keyword { get; set; }
        public string KeyDescrption { get; set; }
        public string KeyTitle { get; set; }

        public static void MapFrom(Tongquang_Model Model, ref Tong_quang entity)
        {
            entity.Id = Model.Id;
            entity.Name = Model.Name;
            entity.Mota = Model.Mota;
            entity.Keyword = Model.Keyword;
            entity.KeyDescrption = Model.KeyDescrption;
            entity.KeyTitle = Model.KeyTitle;
        }

        public static void MapFrom(Tong_quang entity, ref Tongquang_Model Model)
        {
            Model.Id = entity.Id;
            Model.Name = entity.Name;
            Model.Mota = entity.Mota;
            Model.Keyword = entity.Keyword;
            Model.KeyDescrption = entity.KeyDescrption;
            Model.KeyTitle = entity.KeyTitle;
        }
    }
}